package com.wuchao.spring.aopPlus;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author wuchao66
 * @Date 2022/7/4 10:28
 * @Version 1.0
 */
public class Test2 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext cpac =
                new ClassPathXmlApplicationContext("ApplicationContext.xml");//拿到spring的配置文件
        IocPlus iocPlus=   (IocPlus)cpac.getBean("IocPlus");
        iocPlus.show();
    }
}
